package cn.foolishbird.hamal.frame.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import cn.foolishbird.hamal.frame.base.CustomBaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.experimental.Tolerate;
import lombok.experimental.Accessors;

/**
 * <p>
    * 
    * </p>
 *
 * @author Eric
 * @since 2020-10-16
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_user_token")
public class SysUserToken extends CustomBaseEntity {

       private static final long serialVersionUID = 1L;


    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * tokenKey
     */
    @TableField("token_key")
    private String tokenKey;

    /**
     * token
     */
    @TableField("token")
    private String token;

    /**
     * 到期时间（未设置是永久）
     */
    @TableField("expired_time")
    private Long expiredTime;

    @Tolerate
    public SysUserToken (){
    }


}
